var GG_EDUPickupGridViewControllerBase = PickupGridViewControllerBase.extend({
construct: function(config) {
    if(!config)config={};
    if(!config.appctx)config.appctx='';
    if(!config.containerid)config.containerid='';
    arguments.callee.$.construct.call(this,this.getDefaultCfg(config));
    this.regCodeLists(config);
    this.regUICounters(config);
    this.regUIActions(config);
    this.regUpdatePanels(config);
    this.regControllers(config);
}
,regCodeLists:function(config)
{
     /*是否*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_YesNo',datas:[{text:'是',value:'1',realtext:'是'},{text:'否',value:'0',realtext:'否'}]}));
     /*学历学位*/
     this.regCodeList(new IBizCodeList({id: 'liteTwo_CLGG_XLXW',datas:[{text:'本科',value:'5.本科',realtext:'本科'},{text:'大专',value:'4.大专',realtext:'大专'},{text:'硕士',value:'6.硕士',realtext:'硕士'},{text:'博士',value:'6.博士',realtext:'博士'},{text:'MBA',value:'7.MBA',realtext:'MBA'},{text:'中专',value:'3.中专',realtext:'中专'},{text:'高中',value:'2.高中',realtext:'高中'},{text:'初中及以下',value:'1.初中及以下',realtext:'初中及以下'}]}));
}
,regUICounters:function(config)
{
}
,regUpdatePanels:function(config)
{
     var me=this;
}
,regControllers:function(config)
{
  var cid=config.containerid;
    if(cid!='')cid=cid+'_';
}
,regUIActions:function(config)
{
}
,onInit:function(){
   arguments.callee.$.onInit.call(this);
   var form=this.getSearchForm();
form.register(new IBizTextField({id:this.getCId2()+'M4',name:'n_gg_eduname_like',form:form,width:100})
);
form.register(new IBizDropDownListField({id:this.getCId2()+'M5',name:'n_xlxw_eq',form:form,codelistid:'liteTwo_CLGG_XLXW',width:100})
);

}
,onSearchFormFieldChanged: function (fieldname, field, value) {
   var me=this;
   var form=me.getSearchForm();
}
,getDefaultCfg:function(cfg){
     var me=this;   
    var config={backendurl:cfg.appctx+'/Card/GG_EDUPickupGridView.do?'+'srfcid='+cfg.containerid+'&',loaddefault:true
                ,viewurl:'/card/gg_edupickupgridview.jsp?'+'srfcid='+cfg.containerid+'&'
               ,ctrls:{grid:{multiSelect:true
,enablePaging:true,pageSize:100,forceFit:false
,columns:[
{ "title" : $IGM('DEF.LNAME.GG_EDU.GG_EDUNAME','学校名称'),"width":150,"data" :'gg_eduname',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.KSSJ','时间'),"width":150,"data" :'kssj',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.JSSJ','到'),"width":150,"data" :'jssj',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.XLXW','学历学位'),"width":150,"data" :'xlxw',"orderable":true,'render':function(data,type,row){return me.rendergrid_xlxw(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.ZY','专业'),"width":150,"data" :'zy',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.QRZ','全日制'),"width":150,"data" :'qrz',"orderable":true,'render':function(data,type,row){return me.rendergrid_qrz(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.HWJL','是否统招'),"width":150,"data" :'hwjl',"orderable":true,'render':function(data,type,row){return me.rendergrid_hwjl(data,type,row,me);}}

,{ "title" : $IGM('DEF.LNAME.UPDATEMAN','更新人'),"width":150,"data" :'updateman',"orderable":true}

,{ "title" : $IGM('DEF.LNAME.UPDATEDATE','更新时间'),"width":150,"data" :'updatedate',"orderable":true}
]
},searchForm:{enableAdvanceSearch:false,dename:'GG_EDU'}}};
    return  $.extend({},config,cfg);
}
,doHideParentColumns: function (parentMode)
    {
        var me=this;
        arguments.callee.$.doHideParentColumns.call(this,parentMode);
 
         //关系类型 : DER1N ,主实体 :GG_CARD / 简历信息卡
         if (parentMode.srfparenttype=='DER1N' && parentMode.srfder1nid=='DER1N_GG_EDU_GG_CARD_CARDID')
         {
              return;
         }
}
    ,rendergrid_xlxw:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_CLGG_XLXW',data,'未定义');
    }
    ,rendergrid_qrz:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_YesNo',data,'未定义');
    }
    ,rendergrid_hwjl:function(data,type,row,me){
           return me.renderCodeList_Normal('liteTwo_YesNo',data,'未定义');
    }
});